package org.example.redisdemo;

import com.alicp.jetcache.anno.config.EnableCreateCacheAnnotation;
import com.alicp.jetcache.anno.config.EnableMethodCache;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
//一定要精确！！
@MapperScan(basePackages = {"org.example.redisdemo.mapper"})
//激活Cached 注解
@EnableMethodCache(basePackages = "org.example.redisdemo")
//激活CreateCache 注解
@EnableCreateCacheAnnotation
public class RedisDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(RedisDemoApplication.class, args);
    }

}
